package com.atguigu.springcloud.service.impl;

import com.atguigu.springcloud.entity.Dept;
import com.atguigu.springcloud.mapper.DeptMapper;
import com.atguigu.springcloud.service.IDeptService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author : wenchao.long
 * @date : Created in 2020/12/08 13:35 周二
 * @description :
 */
@Service
@AllArgsConstructor
public class DeptServiceImpl extends ServiceImpl<DeptMapper, Dept> implements IDeptService {

    @Override
    public boolean add(Dept dept) {
        return baseMapper.add(dept);
    }

    @Override
    public Dept findOne(Long id) {
        return baseMapper.findOne(id);
    }

    @Override
    public List<Dept> findAll() {
        return baseMapper.findAll();
    }
}
